{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
    <div class="row-fluid">
        <div class="main">
            <div class="col-xs-2 leftmenu">
                {x2;include:menu}
            </div>
            <div id="datacontent">
                <div class="box itembox" style="margin-bottom:0px;border-bottom:1px solid #CCCCCC;">
                        <div class="col-xs-12">
                            <ol class="breadcrumb">
                                <li><a href="index.php?{x2;$_app}-master">{x2;$apps[$_app]['appname']}</a></li>
                                <li><a href="index.php?{x2;$_app}-master-module">模型管理</a></li>
                                <li class="active">添加模型</li>
                            </ol>
                        </div>
                    </div>
                    <div class="box itembox" style="padding-top:10px;margin-bottom:0px;">
                        <h4 class="title" style="padding:10px;">
                            添加模型
                            <a class="pull-right btn btn-primary" href="index.php?{x2;$_app}-master-module">模型列表</a>
                        </h4>
                        <form action="index.php?{x2;$_app}-master-module-add" method="post" class="form-horizontal">
                            <fieldset>
                                <div class="form-group">
                                </div>
                                <div class="form-group">
                                    <label for="modulename" class="control-label col-sm-2">模型名</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="modulename" name="args[modulename]" type="text" value="" needle="needle" min="2" max="40" alt="请输入模型名称" msg="模型名称为不超过40字的中英文字符且不能为空"/>
                                        <span class="help-block">请输入模型名称</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="modulecode" class="control-label col-sm-2">模型代码</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="modulecode" name="args[modulecode]" type="text" value="" needle="needle" datatype="english" max="12" alt="请输入模型代码" msg="模型代码为不超过12字的英文字符"/>
                                        <span class="help-block">请输入12字以内的英文模型代码</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="moduledescribe" class="control-label col-sm-2">模型描述</label>
                                    <div class="col-sm-9">
                                        <textarea class="form-control" rows="7" id="moduledescribe" name="args[moduledescribe]"></textarea>
                                        <span class="help-block">对这个模型进行描述</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="moduledescribe" class="control-label col-sm-2"></label>
                                    <div class="col-sm-9">
                                        <button class="btn btn-primary" type="submit">提交</button>
                                        <input type="hidden" name="insertmodule" value="1"/>
                                        <input type="hidden" name="page" value="{x2;$page}"/>
                                        {x2;if:is_array($search)}{x2;tree:$search,arg,aid}
                                        <input type="hidden" name="search[{x2;v:key}]" value="{x2;v:arg}"/>
                                        {x2;endtree}{x2;endif}
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{x2;include:footer}
</body>
</html>
